<?php
require_once(dirname(__FILE__).'/../bootstrap/unit.php');
$configuration = ProjectConfiguration::getApplicationConfiguration('stab', 'dev', true);
sfContext::createInstance($configuration);
$databaseManager = new sfDatabaseManager($configuration);
$databaseManager->loadConfiguration();

$t = new lime_test(2, new lime_output_color());

$con = Propel::getConnection();
$con->begin();
$rounds = RoundPeer::getRoundsInSequence($con);
$t->is($rounds[0]->getName(), "Round 1", "First round is correct.");
$t->is($rounds[count($rounds) - 1]->getName(), "Round 8", "Final round is correct.");
$con->rollback();
?>
